class ReviewBody {
  String? _productId;
  String? _deliveryManId;
  String? _comment;
  String? _rating;
  List<String>? _fileUpload;
  String? _orderId;

  ReviewBody({
    String? productId,
    String? deliveryManId,
    String? comment,
    String? rating,
    String? orderId,
    List<String>? fileUpload,
  }) {
    this._productId = productId;
    this._deliveryManId = deliveryManId;
    this._comment = comment;
    this._rating = rating;
    this._orderId = orderId;
    this._fileUpload = fileUpload;
  }

  String? get productId => _productId;
  String? get deliveryManId => _deliveryManId;
  String? get comment => _comment;
  String? get orderId => _orderId;
  String? get rating => _rating;
  List<String>? get fileUpload => _fileUpload;

  ReviewBody.fromJson(Map<String, dynamic> json) {
    _productId = json['food_id'];
    _deliveryManId = json['delivery_man_id'];
    _comment = json['comment'];
    _orderId = json['order_id'];
    _rating = json['rating'];
    _fileUpload = json['attachment'].cast<String>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['food_id'] = this._productId;
    data['delivery_man_id'] = this._deliveryManId;
    data['comment'] = this._comment;
    data['order_id'] = this._orderId;
    data['rating'] = this._rating;
    data['attachment'] = this._fileUpload;
    return data;
  }
}

class DelvieryManCancelPopupBody {
  String? _orderId;
  int? _status;

  DelvieryManCancelPopupBody({String? orderId, int? status}) {
    this._orderId = orderId;

    this._status = status;
  }

  String? get orderId => _orderId;

  int? get status => _status;

  DelvieryManCancelPopupBody.fromJson(Map<String, dynamic> json) {
    _orderId = json['order_id'];
    _status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();

    data['order_id'] = this._orderId;
    data['status'] = this._status;
    return data;
  }
}
